package com.baitengsoft.patentservicemonitor.api.service.impl;

import com.baitengsoft.patentservicemonitor.api.dao.RptApplicantDao;
import com.baitengsoft.patentservicemonitor.api.entity.RptApplicantEntity;
import com.baitengsoft.patentservicemonitor.api.service.RptApplicantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 周俊 on 2018/1/16.
 */
@Service("RptApplicantService")
public class RptApplicantImpl implements RptApplicantService {
    @Autowired
    RptApplicantDao rptApplicantDao;

    @Override
    public void deleteRptApplicant(Integer PlatformID, Integer ApplicantID) {
        rptApplicantDao.deleteRptApplicant(PlatformID,ApplicantID);
    }

    @Override
    public void addRptApplicant(RptApplicantEntity rptApplicantEntity) {
        rptApplicantDao.save(rptApplicantEntity);
    }

    @Override
    public void insertRptApplicant(Integer PlatformID,Integer ApplicantId,String PatAddressLast,String ApplyPerson,Integer ApplyPersonType) {
        rptApplicantDao.insertRptApplicant( PlatformID, ApplicantId, PatAddressLast, ApplyPerson, ApplyPersonType);
    }
}
